Page 1 of 2

Aircrafts wheels wont collide with carrier

Posted: Fri Nov 04, 2011 8:53 pm
by hipnox
a quick one.

So i made a landing zone for planes in one of my ships. The planes use default bf109 wheels. the problem is that the wheels do not collide with the ship and thus the plane falls on its belly.

Any ideas? i tried with materials 50 and 55 for the carrier, but no cigar

Re: Aircrafts wheels wont collide with carrier

Posted: Sat Nov 05, 2011 1:13 am
by Swaffy
Have you compared the collisionMesh material IDs of the Enterprise to the IDs of your ship? You should have two COL meshes, COL1 and COL2. The first, I think, is for vehicle-to-vehicle collisions along with ground collisions. The COL2 mesh is, I think, for projectiles.

Re: Aircrafts wheels wont collide with carrier

Posted: Sat Nov 05, 2011 1:50 am
by hipnox
My model has 2 identical collision meshes (COL1 = COL2)

I can stand, shoot and crash into the carrier. The only objects that appears to go through it are airplane wheels (haven't tried with other wheels)

Re: Aircrafts wheels wont collide with carrier

Posted: Sat Nov 05, 2011 2:05 am
by Swaffy
Have you tried raising the plane spawner so that the wheels spawn above the carrier's mesh?

Re: Aircrafts wheels wont collide with carrier

Posted: Sat Nov 05, 2011 3:32 am
by hipnox
i did. I also tried landing on it with a plane taken form elsewhere. Same thing happens

Re: Aircrafts wheels wont collide with carrier

Posted: Sat Nov 05, 2011 3:37 am
by fo0k
wheels in my experience should always have a matid of 37.. is suitably rubbery. maybe use the wheels from an existing plane to test if that's the issue?

Re: Aircrafts wheels wont collide with carrier

Posted: Sat Nov 05, 2011 3:49 am
by hipnox
im using the default bf109 wheels

Re: Aircrafts wheels wont collide with carrier

Posted: Sat Nov 05, 2011 6:23 am
by Swaffy
Does the wheel's Create template thing have this line [shown in bold]?

rem *** BF109wheelR ***
ObjectTemplate.create Spring BF109wheelR
ObjectTemplate.geometry BF109_Wheel_Right_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Grip c_PGFRollGripWhenOccupied
rem -------------------------------------
ObjectTemplate.addTemplate e_WaterTouchPlane
ObjectTemplate.addTemplate e_wdustPlane
ObjectTemplate.addTemplate e_wdustPlaneL
rem -------------------------------------
ObjectTemplate.setStrength 24
ObjectTemplate.setDamping 12

Re: Aircrafts wheels wont collide with carrier

Posted: Sat Nov 05, 2011 6:32 am
by hipnox
yes it does.

Besides, the wheels work on the ground. Its just over MY carrier that they do not work (they work on the enterprise and the jap carrier but i dont know whats different about them)

Re: Aircrafts wheels wont collide with carrier

Posted: Sat Nov 05, 2011 6:42 am
by Swaffy
Okay. It's not your plane, it's your ship's collision mesh. Maybe the surface is upside-down to where you can't go through the bottom but go through the top?

Can your character walk on it?