Example #1
0
func (b *Body) SetAngle(angle float64) {
	C.cpBodySetAngle(b.CPBody, C.cpFloat(angle))
}
Example #2
0
// SetAngle sets the rotation of the body around it's center of gravity in radians.
func (b Body) SetAngle(angle float64) {
	C.cpBodySetAngle(b.c(), C.cpFloat(angle))
}