You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Remove Generic6DOFJoint precision property
This commit is contained in:
@@ -1463,22 +1463,6 @@ bool BulletPhysicsServer3D::generic_6dof_joint_get_flag(RID p_joint, Vector3::Ax
|
||||
return generic_6dof_joint->get_flag(p_axis, p_flag);
|
||||
}
|
||||
|
||||
void BulletPhysicsServer3D::generic_6dof_joint_set_precision(RID p_joint, int p_precision) {
|
||||
JointBullet *joint = joint_owner.getornull(p_joint);
|
||||
ERR_FAIL_COND(!joint);
|
||||
ERR_FAIL_COND(joint->get_type() != JOINT_6DOF);
|
||||
Generic6DOFJointBullet *generic_6dof_joint = static_cast<Generic6DOFJointBullet *>(joint);
|
||||
generic_6dof_joint->set_precision(p_precision);
|
||||
}
|
||||
|
||||
int BulletPhysicsServer3D::generic_6dof_joint_get_precision(RID p_joint) {
|
||||
JointBullet *joint = joint_owner.getornull(p_joint);
|
||||
ERR_FAIL_COND_V(!joint, 0);
|
||||
ERR_FAIL_COND_V(joint->get_type() != JOINT_6DOF, 0);
|
||||
Generic6DOFJointBullet *generic_6dof_joint = static_cast<Generic6DOFJointBullet *>(joint);
|
||||
return generic_6dof_joint->get_precision();
|
||||
}
|
||||
|
||||
void BulletPhysicsServer3D::free(RID p_rid) {
|
||||
if (shape_owner.owns(p_rid)) {
|
||||
ShapeBullet *shape = shape_owner.getornull(p_rid);
|
||||
|
||||
Reference in New Issue
Block a user