[SOLVED] Differences between adding an object to a BulletAppSpace through a Geometry vs Control

I have noticed that add an object to a BulletAppSpace through both a Geometry and a Control. Which method is the preferred way to add an object to a BulletAppSpace?
e.g.

Geometry geometry=new Geometry("box", new Box(1, 1, 1));
RigidBodyControl control=new RigidBodyControl(1f);
geometry.addControl(control);

//both work
bulletAppSpace.add(control);
bulletAppSpace.add(geometry);
1 Like

Welcome to the community :slight_smile:

Neither. If you add a spatial it will just try to extract the control via .getControl. It’s just a convenience method.

3 Likes

Ok, thanks!

2 Likes