Evospace  0.19.0
Modding API
 
Loading...
Searching...
No Matches
StaticMeshComponent Class Reference

Static mesh component. More...

Public Member Functions

void set_static_mesh (StaticMesh *static_mesh)
 Set the static mesh for the component.
 
StaticMeshget_static_mesh () const
 Get the static mesh of the component.
 
void set_material (int32 element_index, MaterialInterface *material)
 Set the material for the component at the specified index.
 
MaterialInterface * get_material (int32 element_index) const
 Get the material of the component at the specified index.
 
void set_relative_location (const vec3 &new_location)
 Set the relative location (translation) of the component.
 
vec3 get_relative_location () const
 Get the relative location (translation) of the component.
 
void set_relative_rotation (const Rotator &new_rotation)
 Set the relative rotation (orientation) of the component.
 
Rotator get_relative_rotation () const
 Get the relative rotation (orientation) of the component.
 
void set_relative_scale3_d (const vec3 &new_scale)
 Set the relative scale of the component.
 
vec3 get_relative_scale3_d () const
 Get the relative scale of the component.
 

Detailed Description

Static mesh component.

Definition at line 7 of file ActorComponentsDoxy.h.

Member Function Documentation

◆ get_material()

MaterialInterface * StaticMeshComponent::get_material ( int32 element_index) const

Get the material of the component at the specified index.

Parameters
ElementIndexint32 representing the material index.
Returns
MaterialInterface pointer representing the current material.

◆ get_relative_location()

vec3 StaticMeshComponent::get_relative_location ( ) const

Get the relative location (translation) of the component.

Returns
Vec3 representing the relative location of the component.

◆ get_relative_rotation()

Rotator StaticMeshComponent::get_relative_rotation ( ) const

Get the relative rotation (orientation) of the component.

Returns
Rotator representing the relative rotation of the component.

◆ get_relative_scale3_d()

vec3 StaticMeshComponent::get_relative_scale3_d ( ) const

Get the relative scale of the component.

Returns
Vec3 representing the relative scale of the component.

◆ get_static_mesh()

StaticMesh * StaticMeshComponent::get_static_mesh ( ) const

Get the static mesh of the component.

Returns
StaticMesh pointer representing the current static mesh.

◆ set_material()

void StaticMeshComponent::set_material ( int32 element_index,
MaterialInterface * material )

Set the material for the component at the specified index.

Parameters
ElementIndexint32 representing the material index.
MaterialMaterialInterface pointer representing the new material.

◆ set_relative_location()

void StaticMeshComponent::set_relative_location ( const vec3 & new_location)

Set the relative location (translation) of the component.

Parameters
NewLocationVec3 representing the new relative location.

◆ set_relative_rotation()

void StaticMeshComponent::set_relative_rotation ( const Rotator & new_rotation)

Set the relative rotation (orientation) of the component.

Parameters
NewRotationRotator representing the new relative rotation.

◆ set_relative_scale3_d()

void StaticMeshComponent::set_relative_scale3_d ( const vec3 & new_scale)

Set the relative scale of the component.

Parameters
NewScaleVec3 representing the new relative scale.

◆ set_static_mesh()

void StaticMeshComponent::set_static_mesh ( StaticMesh * static_mesh)

Set the static mesh for the component.

Parameters
StaticMeshStaticMesh pointer representing the new static mesh.