Drag[en]gine Script Module DragonScript
1.23
|
Prop field. More...
Public Member Functions | |
Constructors | |
PropField | new () |
Create prop field. More... | |
Management | |
void | setPosition (DVector position) |
Set position of the prop field. More... | |
PropFieldListener | getListener () |
Listener or null if not set. More... | |
void | setListener (PropFieldListener listener) |
Set listener or null if not set. More... | |
Types | |
int | addType (Model model, Skin skin, float rotPerForce, float restitution, CollisionFilter collisionFilter, int instanceCount) |
Add type returning the type index. More... | |
void | removeAllTypes () |
Remove all types. More... | |
void | setInstanceAt (int type, int instance, Vector position, Vector rotation, float scaling) |
Set properties of a type. More... | |
Prop field.
This is a native class.
int Dragengine.Scenery.PropField.addType | ( | Model | model, |
Skin | skin, | ||
float | rotPerForce, | ||
float | restitution, | ||
CollisionFilter | collisionFilter, | ||
int | instanceCount | ||
) |
Add type returning the type index.
PropFieldListener Dragengine.Scenery.PropField.getListener | ( | ) |
Listener or null if not set.
PropField Dragengine.Scenery.PropField.new | ( | ) |
Create prop field.
void Dragengine.Scenery.PropField.removeAllTypes | ( | ) |
Remove all types.
void Dragengine.Scenery.PropField.setInstanceAt | ( | int | type, |
int | instance, | ||
Vector | position, | ||
Vector | rotation, | ||
float | scaling | ||
) |
Set properties of a type.
EOutOfBoundary | type is less than 0 or larger than or equal to type count. |
void Dragengine.Scenery.PropField.setListener | ( | PropFieldListener | listener | ) |
Set listener or null if not set.
void Dragengine.Scenery.PropField.setPosition | ( | DVector | position | ) |
Set position of the prop field.