How to rotate GEOM_BOX about its end instead of center of mass?

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
DrPhil
Posts: 4
Joined: Wed Dec 13, 2017 7:33 pm

How to rotate GEOM_BOX about its end instead of center of mass?

Post by DrPhil »

Hi there,

I want to rotate a primitive shape, a p.GEOM_BOX, about its end, instead of about its center of mass.

A very simple standalone chunk of code is here

https://github.com/MachineLearningLab-A ... er_demo.py

Pressing 6 or 7 on your keyboard attempts to rotate the end, but does not quite produce the desired results.

Is it possible to rotate around the end, rather than the center of mass?
Post Reply