Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.PropField Class Reference

Prop field. More...

Inheritance diagram for Dragengine.Scenery.PropField:

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...
 

Detailed Description

Prop field.

This is a native class.

Member Function Documentation

◆ addType()

int Dragengine.Scenery.PropField.addType ( Model  model,
Skin  skin,
float  rotPerForce,
float  restitution,
CollisionFilter  collisionFilter,
int  instanceCount 
)

Add type returning the type index.

◆ getListener()

PropFieldListener Dragengine.Scenery.PropField.getListener ( )

Listener or null if not set.

◆ new()

PropField Dragengine.Scenery.PropField.new ( )

Create prop field.

◆ removeAllTypes()

void Dragengine.Scenery.PropField.removeAllTypes ( )

Remove all types.

◆ setInstanceAt()

void Dragengine.Scenery.PropField.setInstanceAt ( int  type,
int  instance,
Vector  position,
Vector  rotation,
float  scaling 
)

Set properties of a type.

Exceptions
EOutOfBoundarytype is less than 0 or larger than or equal to type count.

◆ setListener()

void Dragengine.Scenery.PropField.setListener ( PropFieldListener  listener)

Set listener or null if not set.

◆ setPosition()

void Dragengine.Scenery.PropField.setPosition ( DVector  position)

Set position of the prop field.


The documentation for this class was generated from the following file: