Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
CompoundShapeSettings::SubShapeSettings Struct Reference

#include <CompoundShape.h>

Public Attributes

RefConst< ShapeSettingsmShape
 Sub shape (either this or mShapePtr needs to be filled up)
 
RefConst< ShapemShapePtr
 Sub shape (either this or mShape needs to be filled up)
 
Vec3 mPosition
 Position of the sub shape.
 
Quat mRotation
 Rotation of the sub shape.
 
uint32 mUserData = 0
 

Member Data Documentation

◆ mPosition

Vec3 CompoundShapeSettings::SubShapeSettings::mPosition

Position of the sub shape.

◆ mRotation

Quat CompoundShapeSettings::SubShapeSettings::mRotation

Rotation of the sub shape.

◆ mShape

RefConst<ShapeSettings> CompoundShapeSettings::SubShapeSettings::mShape

Sub shape (either this or mShapePtr needs to be filled up)

◆ mShapePtr

RefConst<Shape> CompoundShapeSettings::SubShapeSettings::mShapePtr

Sub shape (either this or mShape needs to be filled up)

◆ mUserData

uint32 CompoundShapeSettings::SubShapeSettings::mUserData = 0

User data value (can be used by the application for any purpose). Note this value can be retrieved through GetSubShape(...).mUserData, not through GetSubShapeUserData(...) as that returns Shape::GetUserData() of the leaf shape. Use GetSubShapeIndexFromID get a shape index from a SubShapeID to pass to GetSubShape.


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