add pybullet.unsupportedChangeScaling feature for some small experiments, this is not general and has many limitations that are not likely are going to be resolved,

so unless it does what you want, ignore this api, it is unsupported!
This commit is contained in:
Erwin Coumans
2020-05-17 13:46:11 -07:00
parent 004dcc3404
commit 754dbd5fda
14 changed files with 172 additions and 0 deletions

View File

@@ -2240,6 +2240,22 @@ B3_SHARED_API int b3CreatePoseCommandSetBasePosition(b3SharedMemoryCommandHandle
return 0;
}
B3_SHARED_API int b3CreatePoseCommandSetBaseScaling(b3SharedMemoryCommandHandle commandHandle, double scaling[3])
{
struct SharedMemoryCommand* command = (struct SharedMemoryCommand*)commandHandle;
b3Assert(command);
b3Assert(command->m_type == CMD_INIT_POSE);
command->m_updateFlags |= INIT_POSE_HAS_SCALING;
command->m_initPoseArgs.m_scaling[0] = scaling[0];
command->m_initPoseArgs.m_scaling[1] = scaling[1];
command->m_initPoseArgs.m_scaling[2] = scaling[2];
return 0;
}
B3_SHARED_API int b3CreatePoseCommandSetBaseOrientation(b3SharedMemoryCommandHandle commandHandle, double startOrnX, double startOrnY, double startOrnZ, double startOrnW)
{
struct SharedMemoryCommand* command = (struct SharedMemoryCommand*)commandHandle;