50752009 Posted May 13, 2011 Share Posted May 13, 2011 How the rotation of rigid restrictions, including limits on the rotation of the collision reaction Link to comment
50752009 Posted May 13, 2011 Author Share Posted May 13, 2011 For example, a rigid body, by any direction of the force, rigid body is always around the Z axis. Or in a range of rotation Link to comment
ulf.schroeter Posted May 13, 2011 Share Posted May 13, 2011 How the rotation of rigid restrictions, including limits on the rotation of the collision reaction Use physical joints for rigid body movement restrictions (e.g. cylindrical joint for rotation restriction around an axis). See joints documentation. ... void setAngularLimitFrom(float angle) void setAngularLimitTo(float angle) ... void setLinearLimitFrom(float distance) void setLinearLimitTo(float distance) ... Link to comment
scahp Posted October 6, 2011 Share Posted October 6, 2011 if you want restrict all angular(x, y, z), you use this function in Body Class. void setMaxAngularVelocity(float velocity) // script BodyRigid body = class_remove(new BodyRigid(m_Mesh)); body.setMaxAngularVelocity(0); this script not need any joint. Link to comment
Recommended Posts