Hi I am creating a pool/snooker game and I have made a basic pool table surface using the make objects function, but to add more realism I am looking to create a 3d model with AC3D. My question is what is the best way to handle the physics when using .x models.
I have Dark Physics and have used that with the create model method, but I am unsure on how to use it in relationship with only part of a.x model, or would it be better making the legs and base of the table as a model, then creating separate models for the parts of the top that require the physics attributes (cushions & top)?
Just in case anyone wants to make a pool tabletop Here is the code for it
` pool table
make object box 1, 40, 1, 70 ` table top
make object box 2, 38, 2, 2 `bottom cushion
make object box 3, 38, 2, 2 `top cushion
make object box 4, 2, 2, 32 `left bottom side cushion
make object box 5, 2, 2, 32 `left top side cushion
make object box 6, 2, 2, 32 `right bottom side cushion
make object box 7, 2, 2, 32 `right bottom side cushion
make object box 8, 50, 2, 3 `bottom rail
make object box 9, 50, 2, 3 `top rail
make object box 10, 3, 2, 72 `left side rail
make object box 11, 3, 2, 72 `right side rail
` table creation
` NB object 1 center (0,0,0)
position object 2, 0, 1, 35 ` bottom cushion
position object 3, 0, 1, -35 ` top cushion
position object 4, -21, 1, -17.5 ` lb side cushion
position object 5, -21, 1, 17.5 ` lt side cushion
position object 6, 21, 1, -17.5 ` rb side cushion
position object 7, 21, 1, 17.5 ` rt side cushion
position object 8, 0, 1, 37.5 ` bottom rail
position object 9, 0, 1, -37.5 ` top rail
position object 10, -23.5, 1, 0 ` left side rail
position object 11, 23.5, 1, 0` right side rail
` OBJECTS Physics
`-------------------
` table top
phy make rigid body static box 1
` bottom cushion
phy make rigid body static box 2
` top cushion
phy make rigid body static box 3
` lb side rail
phy make rigid body static box 4
` lt side rail
phy make rigid body static box 5
` rb side rail
phy make rigid body static box 6
` rt side rail
phy make rigid body static box 7
Cos it is!!