Added the change of name also in Commands of PythonAPI
This commit is contained in:
parent
6478d03657
commit
f1dd2d77fa
|
@ -123,18 +123,18 @@ void export_commands() {
|
|||
.def_readwrite("speed", &cr::Command::ApplyWalkerState::speed)
|
||||
;
|
||||
|
||||
class_<cr::Command::ApplyVelocity>("ApplyVelocity")
|
||||
class_<cr::Command::ApplyTargetVelocity>("ApplyTargetVelocity")
|
||||
.def("__init__", &command_impl::CustomInit<ActorPtr, cg::Vector3D>, (arg("actor"), arg("velocity")))
|
||||
.def(init<cr::ActorId, cg::Vector3D>((arg("actor_id"), arg("velocity"))))
|
||||
.def_readwrite("actor_id", &cr::Command::ApplyVelocity::actor)
|
||||
.def_readwrite("velocity", &cr::Command::ApplyVelocity::velocity)
|
||||
.def_readwrite("actor_id", &cr::Command::ApplyTargetVelocity::actor)
|
||||
.def_readwrite("velocity", &cr::Command::ApplyTargetVelocity::velocity)
|
||||
;
|
||||
|
||||
class_<cr::Command::ApplyAngularVelocity>("ApplyAngularVelocity")
|
||||
class_<cr::Command::ApplyTargetAngularVelocity>("ApplyTargetAngularVelocity")
|
||||
.def("__init__", &command_impl::CustomInit<ActorPtr, cg::Vector3D>, (arg("actor"), arg("angular_velocity")))
|
||||
.def(init<cr::ActorId, cg::Vector3D>((arg("actor_id"), arg("angular_velocity"))))
|
||||
.def_readwrite("actor_id", &cr::Command::ApplyAngularVelocity::actor)
|
||||
.def_readwrite("angular_velocity", &cr::Command::ApplyAngularVelocity::angular_velocity)
|
||||
.def_readwrite("actor_id", &cr::Command::ApplyTargetAngularVelocity::actor)
|
||||
.def_readwrite("angular_velocity", &cr::Command::ApplyTargetAngularVelocity::angular_velocity)
|
||||
;
|
||||
|
||||
class_<cr::Command::ApplyImpulse>("ApplyImpulse")
|
||||
|
@ -179,8 +179,8 @@ void export_commands() {
|
|||
implicitly_convertible<cr::Command::ApplyWalkerControl, cr::Command>();
|
||||
implicitly_convertible<cr::Command::ApplyTransform, cr::Command>();
|
||||
implicitly_convertible<cr::Command::ApplyWalkerState, cr::Command>();
|
||||
implicitly_convertible<cr::Command::ApplyVelocity, cr::Command>();
|
||||
implicitly_convertible<cr::Command::ApplyAngularVelocity, cr::Command>();
|
||||
implicitly_convertible<cr::Command::ApplyTargetVelocity, cr::Command>();
|
||||
implicitly_convertible<cr::Command::ApplyTargetAngularVelocity, cr::Command>();
|
||||
implicitly_convertible<cr::Command::ApplyImpulse, cr::Command>();
|
||||
implicitly_convertible<cr::Command::ApplyAngularImpulse, cr::Command>();
|
||||
implicitly_convertible<cr::Command::SetSimulatePhysics, cr::Command>();
|
||||
|
|
Loading…
Reference in New Issue