Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.PropField Class Reference

Prop field. More...

Inheritance diagram for Dragengine.Scenery.PropField:

Public Member Functions

Constructors
PropField new ()
 Create prop field.
Management
void setPosition (DVector position)
 Set position of the prop field.
PropFieldListener getListener ()
 Listener or null if not set.
void setListener (PropFieldListener listener)
 Set listener or null if not set.
World getParentWorld ()
 Parent world or null if not added to a world.
Types
int addType (Model model, Skin skin, float rotPerForce, float restitution, CollisionFilter collisionFilter, int instanceCount)
 Add type returning the type index.
void removeAllTypes ()
 Remove all types.
void setInstanceAt (int type, int instance, Vector position, Vector rotation, float scaling)
 Set properties of a type.

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.

Referenced by removeAllTypes().

◆ getListener()

PropFieldListener Dragengine.Scenery.PropField.getListener ( )

Listener or null if not set.

References getListener().

Referenced by getListener().

◆ getParentWorld()

World Dragengine.Scenery.PropField.getParentWorld ( )

Parent world or null if not added to a world.

Version
1.29

References getParentWorld().

Referenced by getParentWorld().

◆ new()

PropField Dragengine.Scenery.PropField.new ( )

Create prop field.

References new().

Referenced by new().

◆ removeAllTypes()

void Dragengine.Scenery.PropField.removeAllTypes ( )

Remove all types.

References addType().

Referenced by setInstanceAt().

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

References removeAllTypes(), and setInstanceAt().

Referenced by setInstanceAt().

◆ setListener()

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

Set listener or null if not set.

References setListener().

Referenced by setListener().

◆ setPosition()

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

Set position of the prop field.

References setPosition().

Referenced by setPosition().


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