b2d_body_angle_fixed(id)
Jump to navigation
Jump to search
Description
Gets whether or not the given physics body angle is fixed and returns the result.
Parameters
Parameter | Data Type | Description |
---|---|---|
id | integer | index of the body |
Return Values
boolean: Returns whether or not the physics bodies angle is fixed.
Example Call
// demonstrates getting if a physics body has a fixed angle
if (b2d_body_get_angle_fixed(mybod)) {
// rotation is fixed
} else {
// rotation is not fixed
}