32 typedef typename TDataType::Real
Real;
33 typedef typename TDataType::Coord
Coord;
34 typedef typename TDataType::Matrix
Matrix;
48 DEF_VAR(std::vector<Transform3f>, VehiclesTransform, std::vector<Transform3f>{
Transform3f()},
"");
76 std::vector<Quat<Real>> instanceQ;
78 auto instances = this->varVehiclesTransform()->getValue();
80 for (
auto it : instances)
82 auto rot = it.rotation();
93 std::vector<std::shared_ptr<PdActor>>
mActors;
~ArticulatedBody() override
std::vector< Pair< uint, uint > > mBindingPair
DEF_ARRAYLIST_STATE(Transform3f, InstanceTransform, DeviceType::GPU, "Instance transforms")
std::vector< Quat< Real > > getInstanceRotation()
void updateInstanceTransform()
::dyno::Pair< uint, uint > BindingPair
DEF_VAR(std::vector< Transform3f >, VehiclesTransform, std::vector< Transform3f >{Transform3f()}, "")
Creates multiple vehicles and specifies the transformations for each vehicle.
void bind(std::shared_ptr< PdActor > actor, Pair< uint, uint > shapeId)
DEF_INSTANCE_STATE(TextureMesh, TextureMesh, "Texture mesh of the vechicle")
DEF_VAR(FilePath, FilePath, "", "")
DEF_ARRAY_STATE(int, BindingTag, DeviceType::GPU, "")
void resetStates() override
void updateStates() override
DEF_ARRAY_STATE(BindingPair, BindingPair, DeviceType::GPU, "")
std::vector< std::shared_ptr< PdActor > > mActors