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

Component. More...

Inheritance diagram for Dragengine.Scenery.Component:

Public Member Functions

Constructors
Component new ()
 Create component.
Component new (Model model, Skin skin)
 Create component.
Management
DVector getPosition ()
 Position.
void setPosition (DVector position)
 Set position.
Quaternion getOrientation ()
 Orientation.
void setOrientation (Quaternion orientation)
 Set orientation.
Vector getScaling ()
 Scaling.
void setScaling (Vector scaling)
 Set scaling.
DMatrix getMatrix ()
 Matrix.
DMatrix getInverseMatrix ()
 Inverse matrix.
bool getVisible ()
 Component is visible.
void setVisible (bool visible)
 Set if component is visible.
World getParentWorld ()
 Parent world or null if not added to a world.
Model getModel ()
 Model or null if not set.
void setModel (Model model)
 Set model or null if not set.
void setModelKeepTextures (Model model)
 Set model or null if not set while keeping textures.
Skin getSkin ()
 Skin or null if not set.
void setSkin (Skin skin)
 Set skin or null if not set.
void setModelAndSkin (Model model, Skin skin)
 Set model and skin or null if not set.
void resetSkinTime (float time)
 Reset skin time.
Rig getRig ()
 Rig or null if not set.
void setRig (Rig rig)
 Set rig or null if not set.
OcclusionMesh getOcclusionMesh ()
 Occlusion mesh or null if not set.
void setOcclusionMesh (OcclusionMesh occlusionMesh)
 Set occlusion mesh or null if not set.
Model getAudioModel ()
 Audio model or null if not set.
void setAudioModel (Model model)
 Set audio model or null if not set.
LayerMask getLayerMask ()
 Layer mask for visibility masking.
void setLayerMask (LayerMask layerMask)
 Set layer mask for visibility masking.
DynamicSkin getDynamicSkin ()
 Dynamic skin or null if not set.
void setDynamicSkin (DynamicSkin dynamicSkin)
 Set dynamic skin or null if not set.
void updateBones ()
 Update bone matrices.
void copyBonesToComponent (Component component)
 Copy bone states to matching bones states of another component.
Textures
int getTextureCount ()
 Count of textures in the model or 0 if no model is set.
int indexOfTextureNamed (String name)
 Index of named texture or -1 if not found or model is not set.
String getTextureNameAt (int texture)
 Name of texture.
Skin getTextureSkinAt (int texture)
 Skin of texture or null if not used.
int getTextureTextureAt (int texture)
 Texture number of texture or null if not used.
void setTextureSkinAt (int texture, Skin skin, int skinTexture)
 Set skin of texture or null if not set.
TexMatrix2 getTextureTransformAt (int texture)
 Texture coordinates transformation of texture.
void setTextureTransformAt (int texture, TexMatrix2 transform)
 Set texture coordinates transformation of texture.
DynamicSkin getTextureDynamicSkinAt (int texture)
 Dynamic skin of texture or null if not set.
void setTextureDynamicSkinAt (int texture, DynamicSkin dynamicSkin)
 Set dynamic skin of texture or null if not set.
Bones
int getBoneCount ()
 Number of bones.
int indexOfBoneNamed (String name)
 Index of named bone or -1 if not found in rig or rig is not set.
String boneGetName (int index)
 Name of bone.
Vector boneGetPosition (int bone)
 Position of bone relative to bone origin matrix.
void boneSetPosition (int bone, Vector position)
 Set position of the bone relative to bone origin matrix.
Quaternion boneGetRotation (int bone)
 Rotation of bone relative to bone origin matrix.
void boneSetRotation (int bone, Quaternion rotation)
 Set rotation of the bone relative to bone origin matrix.
Vector boneGetScale (int bone)
 Scale of bone relative to bone origin matrix.
void boneSetScale (int bone, Vector scale)
 Set scale of bone relative to bone origin matrix.
Matrix boneGetMatrix (int bone)
 Bone matrix relative to component space.
Matrix boneGetInverseMatrix (int bone)
 Inverse bone matrix relative to component space.
Matrix getBoneOriginMatrix (int bone)
 Bone origin matrix in component space.
Matrix getBoneOriginInverseMatrix (int bone)
 Inverse bone origin matrix in component space.
Vector getBonePosition (String bone)
 Position of bone relative to bone origin matrix.
void setBonePosition (String bone, Vector position)
 Set position of the bone relative to bone origin matrix.
Quaternion getBoneRotation (String bone)
 Rotation of bone relative to bone origin matrix.
void setBoneRotation (String bone, Quaternion rotation)
 Set rotation of the bone relative to bone origin matrix.
Matrix getBoneMatrix (String bone)
 Bone matrix relative to component space.
Matrix getBoneInverseMatrix (String bone)
 Inverse bone matrix relative to component space.
Vertex position sets
int getVertexPositionSetCount ()
 Count of vertex position sets.
int indexOfVertexPositionSetNamed (String name)
 Index of vertex position set with name or -1 if not found.
String vertexPositionSetGetNameAt (int index)
 Name of vertex position set at index.
float vertexPositionSetGetWeightAt (int index)
 Weight of vertex position set at index.
float vertexPositionSetGetWeightNamed (String name)
 Weight of vertex position set by name.
void vertexPositionSetSetWeightAt (int index, float weight)
 Set weight of vertex position set at index.
void vertexPositionSetSetWeightNamed (String name, float weight)
 Set weight of vertex position set by name.
ComponentHintMovement getHintMovement ()
 Movement hint.
void setHintMovement (ComponentHintMovement hint)
 Set movement hint.
bool getEnableGI ()
 Enable GI in graphic module if supported.
void setEnableGI (bool enable)
 Set if enabled for GI in graphic module if supported.
int getHintGIImportance ()
 GI important hint.
void setHintGIImportance (int importance)
 Set GI important hint.
Decals
int getDecalCount ()
 Number of decals.
void addDecal (Decal decal)
 Add decal.
void removeDecal (Decal decal)
 Remove decal.
void removeAllDecals ()
 Remove all decals.
void forEachDecal (Block ablock)
 Visit decals with block with parameter Decal.

Detailed Description

Component.

This is a native class.

Member Function Documentation

◆ addDecal()

void Dragengine.Scenery.Component.addDecal ( Decal decal)

Add decal.

Referenced by forEachDecal().

◆ boneGetInverseMatrix()

Matrix Dragengine.Scenery.Component.boneGetInverseMatrix ( int bone)

Inverse bone matrix relative to component space.

Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

References getBoneCount().

Referenced by indexOfVertexPositionSetNamed().

◆ boneGetMatrix()

Matrix Dragengine.Scenery.Component.boneGetMatrix ( int bone)

Bone matrix relative to component space.

Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

References setTextureDynamicSkinAt().

Referenced by getVertexPositionSetCount().

◆ boneGetName()

String Dragengine.Scenery.Component.boneGetName ( int index)

Name of bone.

Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

Referenced by getBoneOriginInverseMatrix().

◆ boneGetPosition()

Vector Dragengine.Scenery.Component.boneGetPosition ( int bone)

Position of bone relative to bone origin matrix.

Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

References getTextureTextureAt().

Referenced by getBonePosition().

◆ boneGetRotation()

Quaternion Dragengine.Scenery.Component.boneGetRotation ( int bone)

Rotation of bone relative to bone origin matrix.

Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

References getTextureTransformAt().

Referenced by getBoneRotation().

◆ boneGetScale()

Vector Dragengine.Scenery.Component.boneGetScale ( int bone)

Scale of bone relative to bone origin matrix.

Version
1.28
Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

References getTextureDynamicSkinAt().

Referenced by getBoneMatrix().

◆ boneSetPosition()

void Dragengine.Scenery.Component.boneSetPosition ( int bone,
Vector position )

Set position of the bone relative to bone origin matrix.

Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

References setTextureSkinAt().

Referenced by setBonePosition().

◆ boneSetRotation()

void Dragengine.Scenery.Component.boneSetRotation ( int bone,
Quaternion rotation )

Set rotation of the bone relative to bone origin matrix.

Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

References setTextureTransformAt().

Referenced by setBoneRotation().

◆ boneSetScale()

void Dragengine.Scenery.Component.boneSetScale ( int bone,
Vector scale )

Set scale of bone relative to bone origin matrix.

Version
1.28
Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

Referenced by getBoneInverseMatrix().

◆ copyBonesToComponent()

void Dragengine.Scenery.Component.copyBonesToComponent ( Component component)

Copy bone states to matching bones states of another component.

References setOcclusionMesh().

Referenced by getTextureTransformAt().

◆ forEachDecal()

◆ getAudioModel()

Model Dragengine.Scenery.Component.getAudioModel ( )

Audio model or null if not set.

Referenced by getTextureCount().

◆ getBoneCount()

int Dragengine.Scenery.Component.getBoneCount ( )

Number of bones.

References getTextureNameAt().

Referenced by boneGetInverseMatrix().

◆ getBoneInverseMatrix()

Matrix Dragengine.Scenery.Component.getBoneInverseMatrix ( String bone)

Inverse bone matrix relative to component space.

Exceptions
EInvalidParamNo bone with name boneName found.

References boneSetScale().

Referenced by setHintGIImportance().

◆ getBoneMatrix()

Matrix Dragengine.Scenery.Component.getBoneMatrix ( String bone)

Bone matrix relative to component space.

Exceptions
EInvalidParamNo bone with name boneName found.

References boneGetScale().

Referenced by getHintGIImportance().

◆ getBoneOriginInverseMatrix()

Matrix Dragengine.Scenery.Component.getBoneOriginInverseMatrix ( int bone)

Inverse bone origin matrix in component space.

The bone origina matrix is the matrix in component space where the bone has no position, no rotation and 1 scaling.

Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

References boneGetName().

Referenced by vertexPositionSetGetWeightNamed().

◆ getBoneOriginMatrix()

Matrix Dragengine.Scenery.Component.getBoneOriginMatrix ( int bone)

Bone origin matrix in component space.

The bone origina matrix is the matrix in component space where the bone has no position, no rotation and 1 scaling.

Exceptions
EInvalidParambone is less than 0 or larger than or equal to GetBoneCount().

References indexOfBoneNamed().

Referenced by vertexPositionSetGetNameAt().

◆ getBonePosition()

Vector Dragengine.Scenery.Component.getBonePosition ( String bone)

Position of bone relative to bone origin matrix.

Exceptions
EInvalidParamNo bone with name bone found.
Deprecated
Use boneGetPosition(indexOfBoneNamed(bone))

References boneGetPosition().

Referenced by vertexPositionSetSetWeightAt().

◆ getBoneRotation()

Quaternion Dragengine.Scenery.Component.getBoneRotation ( String bone)

Rotation of bone relative to bone origin matrix.

Exceptions
EInvalidParamNo bone with name boneName found.
Deprecated
Use boneSetRotation(indexOfBoneNamed(bone), position)

References boneGetRotation().

Referenced by getEnableGI().

◆ getDecalCount()

int Dragengine.Scenery.Component.getDecalCount ( )

Number of decals.

Referenced by forEachDecal().

◆ getDynamicSkin()

DynamicSkin Dragengine.Scenery.Component.getDynamicSkin ( )

Dynamic skin or null if not set.

References getRig().

Referenced by getTextureTextureAt().

◆ getEnableGI()

bool Dragengine.Scenery.Component.getEnableGI ( )

Enable GI in graphic module if supported.

Version
1.19

References getBoneRotation().

Referenced by forEachDecal().

◆ getHintGIImportance()

int Dragengine.Scenery.Component.getHintGIImportance ( )

GI important hint.

Version
1.19

Value is in the range from 0 (very unimportant) to 4 (very important). This hint can be used by the graphic module to improve performance by excluding components with a GI important below a user chosen threashold. The default important is 4.

References getBoneMatrix().

Referenced by forEachDecal().

◆ getHintMovement()

ComponentHintMovement Dragengine.Scenery.Component.getHintMovement ( )

Movement hint.

Referenced by forEachDecal().

◆ getInverseMatrix()

DMatrix Dragengine.Scenery.Component.getInverseMatrix ( )

Inverse matrix.

Referenced by getParentWorld().

◆ getLayerMask()

LayerMask Dragengine.Scenery.Component.getLayerMask ( )

Layer mask for visibility masking.

Referenced by getTextureNameAt().

◆ getMatrix()

DMatrix Dragengine.Scenery.Component.getMatrix ( )

Matrix.

References getScaling().

Referenced by setVisible().

◆ getModel()

Model Dragengine.Scenery.Component.getModel ( )

Model or null if not set.

References getVisible().

Referenced by getSkin().

◆ getOcclusionMesh()

OcclusionMesh Dragengine.Scenery.Component.getOcclusionMesh ( )

Occlusion mesh or null if not set.

References setSkin().

Referenced by updateBones().

◆ getOrientation()

Quaternion Dragengine.Scenery.Component.getOrientation ( )

Orientation.

References setPosition().

Referenced by setOrientation().

◆ getParentWorld()

World Dragengine.Scenery.Component.getParentWorld ( )

Parent world or null if not added to a world.

Version
1.29

References getInverseMatrix().

Referenced by setModel().

◆ getPosition()

DVector Dragengine.Scenery.Component.getPosition ( )

Position.

References getPosition().

Referenced by getPosition().

◆ getRig()

Rig Dragengine.Scenery.Component.getRig ( )

Rig or null if not set.

References getSkin().

Referenced by getDynamicSkin().

◆ getScaling()

Vector Dragengine.Scenery.Component.getScaling ( )

Scaling.

Referenced by getMatrix().

◆ getSkin()

Skin Dragengine.Scenery.Component.getSkin ( )

Skin or null if not set.

References getModel().

Referenced by getRig().

◆ getTextureCount()

int Dragengine.Scenery.Component.getTextureCount ( )

Count of textures in the model or 0 if no model is set.

References getAudioModel().

Referenced by getTextureDynamicSkinAt().

◆ getTextureDynamicSkinAt()

DynamicSkin Dragengine.Scenery.Component.getTextureDynamicSkinAt ( int texture)

Dynamic skin of texture or null if not set.

Exceptions
EOutOfBoundarytexture is less than 0 or greater than or equal to getTextureCount().

References getTextureCount(), and indexOfTextureNamed().

Referenced by boneGetScale().

◆ getTextureNameAt()

String Dragengine.Scenery.Component.getTextureNameAt ( int texture)

Name of texture.

Version
1.9
Exceptions
EOutOfBoundarytexture is less than 0 or greater than or equal to getTextureCount().

References getLayerMask().

Referenced by getBoneCount().

◆ getTextureSkinAt()

Skin Dragengine.Scenery.Component.getTextureSkinAt ( int texture)

Skin of texture or null if not used.

Exceptions
EOutOfBoundarytexture is less than 0 or greater than or equal to getTextureCount().

References setLayerMask().

Referenced by indexOfBoneNamed().

◆ getTextureTextureAt()

int Dragengine.Scenery.Component.getTextureTextureAt ( int texture)

Texture number of texture or null if not used.

Exceptions
EOutOfBoundarytexture is less than 0 or greater than or equal to getTextureCount().

References getDynamicSkin(), and setDynamicSkin().

Referenced by boneGetPosition().

◆ getTextureTransformAt()

TexMatrix2 Dragengine.Scenery.Component.getTextureTransformAt ( int texture)

Texture coordinates transformation of texture.

Exceptions
EOutOfBoundarytexture is less than 0 or greater than or equal to getTextureCount().

References copyBonesToComponent().

Referenced by boneGetRotation().

◆ getVertexPositionSetCount()

int Dragengine.Scenery.Component.getVertexPositionSetCount ( )

Count of vertex position sets.

Version
1.17

References boneGetMatrix().

Referenced by removeDecal().

◆ getVisible()

bool Dragengine.Scenery.Component.getVisible ( )

Component is visible.

References setScaling().

Referenced by getModel().

◆ indexOfBoneNamed()

int Dragengine.Scenery.Component.indexOfBoneNamed ( String name)

Index of named bone or -1 if not found in rig or rig is not set.

References getTextureSkinAt().

Referenced by getBoneOriginMatrix().

◆ indexOfTextureNamed()

int Dragengine.Scenery.Component.indexOfTextureNamed ( String name)

Index of named texture or -1 if not found or model is not set.

References setAudioModel().

Referenced by getTextureDynamicSkinAt().

◆ indexOfVertexPositionSetNamed()

int Dragengine.Scenery.Component.indexOfVertexPositionSetNamed ( String name)

Index of vertex position set with name or -1 if not found.

Version
1.17

References boneGetInverseMatrix().

Referenced by removeAllDecals().

◆ new() [1/2]

Component Dragengine.Scenery.Component.new ( )

Create component.

References new().

Referenced by new(), and new().

◆ new() [2/2]

Component Dragengine.Scenery.Component.new ( Model model,
Skin skin )

Create component.

References new().

◆ removeAllDecals()

void Dragengine.Scenery.Component.removeAllDecals ( )

Remove all decals.

References indexOfVertexPositionSetNamed().

Referenced by forEachDecal().

◆ removeDecal()

void Dragengine.Scenery.Component.removeDecal ( Decal decal)

Remove decal.

References getVertexPositionSetCount().

Referenced by forEachDecal().

◆ resetSkinTime()

void Dragengine.Scenery.Component.resetSkinTime ( float time)

Reset skin time.

Version
1.32

The graphic module manages skin time. When creating a new component the skin time is set to 0 and advanced when the deWorld is updated. All components created at the same time share the same skin time. Reseting the skin time can be used for two main purposes:

  • Manually synchronize the skin time of a set of components
  • Randomize skin time of components created at the same time Do not call this method to advance the skin time manually.

References setModelKeepTextures().

Referenced by setLayerMask().

◆ setAudioModel()

void Dragengine.Scenery.Component.setAudioModel ( Model model)

Set audio model or null if not set.

Shares textures with assigned model.

Referenced by indexOfTextureNamed().

◆ setBonePosition()

void Dragengine.Scenery.Component.setBonePosition ( String bone,
Vector position )

Set position of the bone relative to bone origin matrix.

Exceptions
EInvalidParamNo bone with name boneName found.
Deprecated
Use boneSetPosition(indexOfBoneNamed(bone), position)

References boneSetPosition().

Referenced by setHintMovement().

◆ setBoneRotation()

void Dragengine.Scenery.Component.setBoneRotation ( String bone,
Quaternion rotation )

Set rotation of the bone relative to bone origin matrix.

Exceptions
EInvalidParamNo bone with name boneName found.
Deprecated
Use boneSetRotation(indexOfBoneNamed(bone), rotation)

References boneSetRotation().

Referenced by setEnableGI().

◆ setDynamicSkin()

void Dragengine.Scenery.Component.setDynamicSkin ( DynamicSkin dynamicSkin)

Set dynamic skin or null if not set.

References setRig().

Referenced by getTextureTextureAt().

◆ setEnableGI()

void Dragengine.Scenery.Component.setEnableGI ( bool enable)

Set if enabled for GI in graphic module if supported.

Version
1.19

References setBoneRotation().

Referenced by forEachDecal().

◆ setHintGIImportance()

void Dragengine.Scenery.Component.setHintGIImportance ( int importance)

Set GI important hint.

Version
1.19

Value is in the range from 0 (very unimportant) to 4 (very important). This hint can be used by the graphic module to improve performance by excluding components with a GI important below a user chosen threshold.

References getBoneInverseMatrix().

Referenced by forEachDecal().

◆ setHintMovement()

void Dragengine.Scenery.Component.setHintMovement ( ComponentHintMovement hint)

Set movement hint.

References setBonePosition().

Referenced by forEachDecal().

◆ setLayerMask()

void Dragengine.Scenery.Component.setLayerMask ( LayerMask layerMask)

Set layer mask for visibility masking.

References resetSkinTime().

Referenced by getTextureSkinAt().

◆ setModel()

void Dragengine.Scenery.Component.setModel ( Model model)

Set model or null if not set.

Textures are reset. To keep textures use setModelKeepTextures.

References getParentWorld(), and setVisible().

Referenced by setModelAndSkin().

◆ setModelAndSkin()

void Dragengine.Scenery.Component.setModelAndSkin ( Model model,
Skin skin )

Set model and skin or null if not set.

References setModel().

Referenced by setOcclusionMesh().

◆ setModelKeepTextures()

void Dragengine.Scenery.Component.setModelKeepTextures ( Model model)

Set model or null if not set while keeping textures.

Restores current state of textures after switching model if possible. Use this method instead of setModel if you set textures on the component and the new model is similar enough to match. Textures not existing anymore are not restored.

Referenced by resetSkinTime().

◆ setOcclusionMesh()

void Dragengine.Scenery.Component.setOcclusionMesh ( OcclusionMesh occlusionMesh)

Set occlusion mesh or null if not set.

References setModelAndSkin().

Referenced by copyBonesToComponent().

◆ setOrientation()

void Dragengine.Scenery.Component.setOrientation ( Quaternion orientation)

Set orientation.

References getOrientation().

Referenced by setScaling().

◆ setPosition()

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

Set position.

Referenced by getOrientation().

◆ setRig()

void Dragengine.Scenery.Component.setRig ( Rig rig)

Set rig or null if not set.

Referenced by setDynamicSkin().

◆ setScaling()

void Dragengine.Scenery.Component.setScaling ( Vector scaling)

Set scaling.

References setOrientation().

Referenced by getVisible().

◆ setSkin()

void Dragengine.Scenery.Component.setSkin ( Skin skin)

Set skin or null if not set.

Referenced by getOcclusionMesh().

◆ setTextureDynamicSkinAt()

void Dragengine.Scenery.Component.setTextureDynamicSkinAt ( int texture,
DynamicSkin dynamicSkin )

Set dynamic skin of texture or null if not set.

Exceptions
EOutOfBoundarytexture is less than 0 or greater than or equal to getTextureCount().

Referenced by boneGetMatrix().

◆ setTextureSkinAt()

void Dragengine.Scenery.Component.setTextureSkinAt ( int texture,
Skin skin,
int skinTexture )

Set skin of texture or null if not set.

Exceptions
EOutOfBoundarytexture is less than 0 or greater than or equal to getTextureCount().

References updateBones().

Referenced by boneSetPosition().

◆ setTextureTransformAt()

void Dragengine.Scenery.Component.setTextureTransformAt ( int texture,
TexMatrix2 transform )

Set texture coordinates transformation of texture.

Exceptions
EOutOfBoundarytexture is less than 0 or greater than or equal to getTextureCount().

Referenced by boneSetRotation().

◆ setVisible()

void Dragengine.Scenery.Component.setVisible ( bool visible)

Set if component is visible.

References getMatrix().

Referenced by setModel().

◆ updateBones()

void Dragengine.Scenery.Component.updateBones ( )

Update bone matrices.

References getOcclusionMesh().

Referenced by setTextureSkinAt().

◆ vertexPositionSetGetNameAt()

String Dragengine.Scenery.Component.vertexPositionSetGetNameAt ( int index)

Name of vertex position set at index.

Version
1.17
Exceptions
EOutOfBoundaryIndex is less than 0.
EOutOfBoundaryIndex is larger than or equal to getVertexPositionSetCount().

References getBoneOriginMatrix().

Referenced by forEachDecal().

◆ vertexPositionSetGetWeightAt()

float Dragengine.Scenery.Component.vertexPositionSetGetWeightAt ( int index)

Weight of vertex position set at index.

Version
1.17
Exceptions
EOutOfBoundaryIndex is less than 0.
EOutOfBoundaryIndex is larger than or equal to getVertexPositionSetCount().

Referenced by forEachDecal().

◆ vertexPositionSetGetWeightNamed()

float Dragengine.Scenery.Component.vertexPositionSetGetWeightNamed ( String name)

Weight of vertex position set by name.

Version
1.17
Exceptions
EOutOfBoundaryVertex position set with name is absent.

References getBoneOriginInverseMatrix().

Referenced by forEachDecal().

◆ vertexPositionSetSetWeightAt()

void Dragengine.Scenery.Component.vertexPositionSetSetWeightAt ( int index,
float weight )

Set weight of vertex position set at index.

Version
1.17
Exceptions
EOutOfBoundaryIndex is less than 0.
EOutOfBoundaryIndex is larger than or equal to getVertexPositionSetCount().

References getBonePosition().

Referenced by forEachDecal().

◆ vertexPositionSetSetWeightNamed()

void Dragengine.Scenery.Component.vertexPositionSetSetWeightNamed ( String name,
float weight )

Set weight of vertex position set by name.

Version
1.17
Exceptions
EOutOfBoundaryVertex position set with name is absent.

Referenced by forEachDecal().


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