Page 1 of 1

Old Problem again: No Collision at all..

Posted: Thu Jan 12, 2012 11:48 pm
by Dennis|8749236
I got this problem at least half year ago, and i asked for help too.
But i did not solve the problem.
Now the problem happens again, i would like to know why.
The Problem: No Collision with Projectiles, Vehicles, Springs.. everything..(It got wrose, half years ago the object i made can collide with vehicles and springs)

Code: Select all

ObjectTemplate.create RotationalBundle TargetMarkerBundleStablizer
ObjectTemplate.networkableInfo AA_Allies_TurretInfo
rem ObjectTemplate.geometry TargetMarkerTestGeo
ObjectTemplate.setMinRotation 0/-90/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setPivotPosition 0/0/0
ObjectTemplate.setMaxSpeed 0/-15/0
ObjectTemplate.setAcceleration 0/-10000/0
ObjectTemplate.setInputToPitch c_PIThrottle
rem ----------------------------------------------------------
rem ObjectTemplate.AddTemplate TestSpawner
rem ObjectTemplate.AddTemplate Fi-103TargetMarker_m1
rem ObjectTemplate.setPosition 0.0/0.0/0.0
rem ObjectTemplate.setRotation 0.0/45.0/0.0
ObjectTemplate.AddTemplate Supplyde_m1
rem ----------------------------------------------------------
ObjectTemplate.setAttachToListener 1

ObjectTemplate.hasCollisionPhysics 1

Re: Old Problem again: No Collision at all..

Posted: Fri Jan 13, 2012 7:14 am
by Swaffy
Hmm. Perhaps because you "remmed" out the geometries?

Or ... because you are trying to "addTemplate" a StandardMesh instead of a SimpleObject.
I think "Supplyde_M1" is a StandardMesh, you should try adding a SimpleObject (static object) instead.

Re: Old Problem again: No Collision at all..

Posted: Fri Jan 13, 2012 8:05 pm
by Apache Thunder
I checked and the object is actually called that. Many vanilla objects like buildings have the _m1 suffice in their object name and not just in the standardMesh template.

The thing is, that particular object he did addtemplate does not have it's own geometry and uses a lodObject. Thus this may be his problem.

Try instead addtemplating this to your rotational bundle:

Code: Select all

ObjectTemplate.addTemplate lodSupplyde
If you still don't have collision then addtemplate this:

Code: Select all

ObjectTemplate.addTemplate SupplydeExterior
Or you can use it's geometry directly:

Code: Select all

ObjectTemplate.geometry Supplyde_m2
I'm not sure if it's the interior or the exterior that has the collision mesh. Lod Objects only use one of the child objects as the collision. (hence why a destroyed vehicle will still use the collision mesh of the non destroyed mesh)

So you can try this if the other one doesn't have a collision mesh:

Code: Select all

ObjectTemplate.geometry Supplyde_m1

Re: Old Problem again: No Collision at all..

Posted: Fri Jan 13, 2012 9:34 pm
by Dennis|8749236
Thanks swaffy and Apache Thunder. I already got an alternative solution (use a firearm to shoot a projectile+spawner instead of just add it).
But I will try it, because the springs got same problems too (and it works fine in DCX >.< but when it went to another mod, oh yea.. Problem..)
====
The adding Lod way did not work..
And m2 dont have collision effect. (Geo)
But m1 worked..
Thank you..