SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::ArticulatedSkinParams Struct Reference

Optional skinned mesh attached to an articulated actor for collision and rendering. More...

#include <mochi_structs.h>

Inheritance diagram for superdex::ArticulatedSkinParams:
superdex::prefab::ArticulatedSkinPrefab

Public Member Functions

bool operator== (ArticulatedSkinParams const &) const =default

Public Attributes

ActorBoundaryElementType boundaryElementType = ActorBoundaryElementType::Default
 Finite element type for boundary discretization.
std::optional< BoundarySubsamplingParamsboundarySubsampling
 Optional subsampling for boundary integrals such as contact.
ContactParams contact
 Contact mechanics parameters.
DynamicString layer
 Contact layer name for filtering contacts between actors.
ShapeHandle shape
 Shape handle defining the skinned triangle mesh.

Detailed Description

Optional skinned mesh attached to an articulated actor for collision and rendering.

The skin is a triangle mesh deformed by the underlying articulated links. It acts as a colliding actor (its contact sample points are tested against other actors' collider geometry) but not as a collider actor (other actors' contact sample points are not tested against it).

See also
ArticulatedActorParams::skin

Definition at line 222 of file mochi_structs.h.

Member Function Documentation

◆ operator==()

bool superdex::ArticulatedSkinParams::operator== ( ArticulatedSkinParams const & ) const
default

Member Data Documentation

◆ boundaryElementType

ActorBoundaryElementType superdex::ArticulatedSkinParams::boundaryElementType = ActorBoundaryElementType::Default

Finite element type for boundary discretization.

Note
Affects accuracy and performance of contact and boundary integrals.

Definition at line 226 of file mochi_structs.h.

◆ boundarySubsampling

std::optional<BoundarySubsamplingParams> superdex::ArticulatedSkinParams::boundarySubsampling

Optional subsampling for boundary integrals such as contact.

Note
Reduces computational cost by using fewer sample points.
For best performance, combine subsampling with boundaryElementType = ActorBoundaryElementType::P1Q1.

Definition at line 227 of file mochi_structs.h.

◆ contact

ContactParams superdex::ArticulatedSkinParams::contact

Contact mechanics parameters.

Definition at line 225 of file mochi_structs.h.

◆ layer

DynamicString superdex::ArticulatedSkinParams::layer

Contact layer name for filtering contacts between actors.

See also
Scene::EnableLayerContactAsymmetric, Scene::EnableLayerContactSymmetric, Scene::EnableActorContactAsymmetric, Scene::EnableActorContactSymmetric

Definition at line 224 of file mochi_structs.h.

◆ shape

ShapeHandle superdex::ArticulatedSkinParams::shape

Shape handle defining the skinned triangle mesh.

Note
A shape can be shared by multiple actors, even actors in different scenes.
See also
ShapeHandle, Context::LoadShapeFromFile

Definition at line 223 of file mochi_structs.h.


The documentation for this struct was generated from the following files: