Hi there,
I hope someone can help me on this issue which has become a little bit frustrating by now.
In our serious game the player should not hit too many objects. Hence we want to register the objects being hit. Think of trees, streetlights, animals, etc.
First I was using the Touch event to register the collision, but eventually noticed that trees have a large collision volume (because of the branches) which causes to register the "hit" while the truck has not hit the object at all. The tree (example) has a simple karma cylinder, and no collision objects in the branch top part.
The bump event only gets triggered when my player hits the truck or vice versa. (Vehicles/pawns). But I have become completely clueless how to get a proper Bump/HitWall/Some other collision event when my Karma truck hits the tree! I have already created a new StaticMeshActor type called DynamicMeshActor, to play around with the collision variables, but nothing seems to work.. .except the volume based Touch event.
Can anyone shed some light on this issue? I have tried many combinations with bStatic, bworldGeometry, etc. But it just won't work.
and the events/functions I try to use:
Thanks in advance!
I hope someone can help me on this issue which has become a little bit frustrating by now.
In our serious game the player should not hit too many objects. Hence we want to register the objects being hit. Think of trees, streetlights, animals, etc.
First I was using the Touch event to register the collision, but eventually noticed that trees have a large collision volume (because of the branches) which causes to register the "hit" while the truck has not hit the object at all. The tree (example) has a simple karma cylinder, and no collision objects in the branch top part.
The bump event only gets triggered when my player hits the truck or vice versa. (Vehicles/pawns). But I have become completely clueless how to get a proper Bump/HitWall/Some other collision event when my Karma truck hits the tree! I have already created a new StaticMeshActor type called DynamicMeshActor, to play around with the collision variables, but nothing seems to work.. .except the volume based Touch event.
Can anyone shed some light on this issue? I have tried many combinations with bStatic, bworldGeometry, etc. But it just won't work.
Code:
defaultproperties
{
bStatic=false
bWorldGeometry=false
bDynamicLight = true
bUseDynamicLights = true
DrawType = DT_StaticMesh
bCollideActors=True
bCollideWorld=false
bBlockActors=true
bBlockPlayers=True
bBlockKarma=true
StaticMesh=StaticMesh'Editor.TexPropSphere'
}
and the events/functions I try to use:
Code:
function HitWall (vector HitNormal, actor Wall)
{
Log("GPC HitWall: "@ Wall);
}
function Touch( actor Other )
{
local int i;
for (i = 0; i < Touching.length; i++)
{
Log("GPC Touch: " @ Touching[i]);
}
Super.Touch(other);
}
event Bump(Actor other)
{
Log("GPC Bump" @ other);
super.Bump(other);
}
Thanks in advance!