I have a few questions

I have built the cargo bay of the helicopter using a compound body, is this the preferred solution?
Code: Select all
//Build the helicopter cargo bay
var bodies = new List<CompoundShapeEntry>()
{
// floor
new CompoundShapeEntry(new BoxShape(2.3f,0.2f,9.3f), new Vector3(0, 3, 0), 1),
// ceiling
new CompoundShapeEntry(new BoxShape(2.3f,0.2f,9.3f), new Vector3(0, 5, 0), 1),
// back wall
new CompoundShapeEntry(new BoxShape(2.3f,2f,0.2f),new Vector3(0,4.3f,-4.7f),1),
// left wall
new CompoundShapeEntry(new BoxShape(0.2f,2.4f,9.3f), new Vector3(1.25f, 4.1f, 0), 1),
// right wall
new CompoundShapeEntry(new BoxShape(0.2f,2.4f,9.3f), new Vector3(-1.25f, 4.1f, 0), 1)
};
Helicopter = new CompoundBody(bodies);
Helicopter.Position = new Vector3(950, -6, -950);
Space.Add(Helicopter);
Additionally, If I throw a grenade from the back of the helicopter, its trajectory is incorrect, I presume I need to add the character's velocity to the grenade velocity?
Thanks for taking the time to look at this:)