S2ENGINE HD
1.4.6
Official manual about S2Engine HD editor and programming
|
Base Class: Entity
This object represents the physical vehicle.
This object interface directly with physics system. When instanced it requests to physics system the creation of a physical vehicle.
To create a physical vehicle The physics system needs an object composed by a hierarchy in which a 'body' object node is attached to front wheels and back wheels nodes.
Physical collision shapes of a vehicle are the shapes of the body and the shapes of the wheels.
The shape of the wheels are automatically created by physics system basing on their model geometry, while shapes of the vehicle body can be specified by the user inside the editor, just like RigidBody objects.
Also mass, friction and elasticity params are used just like in RigidBody objects. For more informations about Physics objects see Physics.
FrontWheels | (string) list of names separated by simbol ','. These are the names of the nodes in which are front wheels of the vehicle |
BackWheels | (string) list of names separated by simbol ','. These are the names of the nodes in which are back wheels of the vehicle |
Body | (string) name of the node in which is the body of the vehicle. |
minRPM | (float) minimum rotations per minute of the vehicle engine (default value is 1000). |
maxRPM | (float) maximum rotations per minute of the vehicle engine (default value is 5000). |
Suspension | (float) this is the amount of vehicle suspensions. Bigger value means more floating vehicle(default value is 7.0). |
COM_Height | (float) This is the height of the center of mass of the vehicle respect its geometric center. Positive values means COM is above vehicle, negative values means COM is below vehicle. Negative value means more stability. |
LateralFriction | (float)The lateral friction applied to wheels (default value is 0.05). |
FrontFriction | (boolean)the front friction applied to wheels (default value is 10.0). |
SplashObject | (Object list) name of the object, generally a particle system, simulating the water splash. |
RipplesObject | (Object list) name of the object ,generally a DecalObject, simulating the water ripples. |
Name | Description | Content parameters |
EnterWater | Vehicle receives this message for physics system when enter the water plane. When receives this message the vehicle activates the SplashObject and the RipplesObject. | message#0: length of the entering velocity |
none