Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SingleBody.Constraints can't be added to the World #8

Open
GoogleCodeExporter opened this issue Dec 3, 2015 · 2 comments
Open

SingleBody.Constraints can't be added to the World #8

GoogleCodeExporter opened this issue Dec 3, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

- What steps will reproduce the problem?

1. Just create a single body constraint,
2. call world.AddConstraint(..),
3. and get an instant NullReferenceException.

- What version of the product are you using?

The latest from the repository.

- Please provide any additional information below.

NullReferenceException: Object reference not set to an instance of an object
Jitter.Collision.IslandManager.AddConnection (IslandManager.cs:169)
Jitter.Collision.IslandManager.ConstraintCreated (IslandManager.cs:61)
Jitter.World.AddConstraint (World.cs:499)

IslandManager.AddConnection(RigidBody body1, RigidBody body2) doesn't expect 
body2 to be null.

Original issue reported on code.google.com by [email protected] on 24 Jun 2013 at 7:31

@GoogleCodeExporter
Copy link
Author

Ok, I changed a bit both IslandManager.AddConnection and 
IslandManager.RemoveConnection to this - http://pastebin.com/bp2Cdf0E

It seems to work now.

Original comment by [email protected] on 24 Jun 2013 at 9:28

@notgiven688
Copy link
Owner

Issue seems to be very old. Probably already fixed.

@notgiven688 notgiven688 added the bug label Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants