![]() |
S2ENGINE HD
1.4.6
Official manual about S2Engine HD editor and programming
|
In S2Engine SceneObject is the base class of all component of a Scene. SceneObjects have a set of shared parameters:
| pos | Object position in the world |
| scale | Object scaling transform |
| ang | Object orientation in euler angles (yaw, pitch, roll) |
| color | Object color. Works only if supported by the object, es. lights |
| model | Object model. Must click on apply to apply changes |
| cast_shadows | Cast shadows flag |
| name | Object name |
| dims | Dimensions of the object. Behaviour depends on the object. For rigid bodies It gives the dimensions of the collision shape |
| activable | This flag means if object must be active at game start |
| offset | |
| script | |
| maxDistance | Max visibility distance of the object |
| custom | Custom parameter. Can be used inside script |
| maxShadowDistance | Max distance the object can cast shadows |
| impostor | Object impostor material |
| colmesh | object collision mesh. Can be set if collision shape is set to mesh |
| terrainHeight | The y coordinate of the object relative to the terrain |
| modelLod1 | The model resource used for first level of detail |
| modelLod2 | The model resource used for second level of detail |
| modelLod3 | The model resource used for third level of detail |
| earlyZCull | |
| attachList | |
| scriptParams | |
| timeBasedLOD | This flag means if object LOD transition must be aplpied basing on distance or time |
| fsm | The Game Machine resource applied to this object |
| lodBias1 | |
| lodBias2 | |
| lodBias3 | |
| impostorBias | |
| lodTransitionMul | |
| transformID | this index means the order object transformation must be applied: minor values means object is transformed fisrt |
The Core Classes directly derived from SceneObject are the following:
All other classes directly or indirectly derived from SceneObject class are included inside BasePack