free-language / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

SetTransform is latent #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a body.
2. "teleport" it to another location with SetTransform, just above the
ground so it's not touching the ground.
3. Create another body and let it drop to the ground.

What is the expected output? What do you see instead?

The mouse coords are fed into SetTransform so the body is supposed to track
the mouse. But this doesn't happen. GetPosition only reports the transform
once another body has been created and has made contact with another body
(in this case the ground.)

What version of the product are you using? On what operating system?

Ubuntu Linux 9.10, Box 2.1.1

Please provide any additional information below.

Previously SetXForm appeared to set the position of the body immediately.

Original issue reported on code.google.com by cammyking@gmail.com on 16 Apr 2010 at 10:22

Attachments:

GoogleCodeExporter commented 9 years ago
I cannot reproduce this problem.

Please provide a C++ testbed example that reproduces your problem.

Original comment by erinca...@gmail.com on 17 Apr 2010 at 12:34

GoogleCodeExporter commented 9 years ago
Yeah, I made a testbed example and it worked. So I investigated and found I was 
using
BodyDef.awake = true; instead of Body->SetAwake(true);

Please disregard this report.

Original comment by cammyking@gmail.com on 18 Apr 2010 at 5:33

GoogleCodeExporter commented 9 years ago
Ok, glad you found the problem.

Original comment by erinca...@gmail.com on 19 Apr 2010 at 4:33