Old Problem again: No Collision at all..

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

Old Problem again: No Collision at all..

Post 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
What is the meaning of Life?? (Don't think about it!)
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

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

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

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

Post 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
ImageImageImage
I have cameras in your head!
User avatar
Dennis|8749236
Posts: 239
Joined: Sun Nov 29, 2009 6:02 am
Location: Earth
Contact:

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

Post 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..
What is the meaning of Life?? (Don't think about it!)
Post Reply