Collision issue between camera and moving octree

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
WhytWulf
Posts: 51
Joined: Mon Sep 08, 2003 11:14 am
Location: Australia, Tamworth, NSW
Contact:

Collision issue between camera and moving octree

Post by WhytWulf »

Again I decided to see what happens when you do silly things..
First I created a bus shape vehicle as a BSP (complete with open door and steps), as a stationary object I can climb the steps bounce of the interior walls etc,etc..
Second, I attached the bus as a child to my busNull ojbect(which moves through waypoints) therefore dragging the bus along with it.

Problem occurs when you climb into the bus..if I position myself near a interior wall and the bus moves , I pass through the wall, also if I stand infront of the bus (doing my best Superman impersonation), I get pushed through the ground (which I guess is semi realistic). It seems if I want to stay in the bus, I have to keep moving along with it..
I guess the way to fix it, would be to either, have a "USE" action and when I "USE the bus" it adds the camera to the bus as a child node. THe otherway would be to have basic physics where the you can assign a simple weighting system to objects, EG: 0.5 for camera, 1.0 for world map, 0.8 for bus. therefore the bus can move the lower rated/weighted object but cannot move higher..

***ADDED
The weighting system, would be quite usefull, if the player (in a FPS type game), was wearing big chunky armour, and hard super strength, this would allow the player to push the little weaklings away. also you could add the weighting system to projectitles...IE: standing infront of a rocket is not good for the health, plus you have to worry about the big bang too. also imagine a gund fight on a roof top.. even a small projectitle has enough energy to move things.. even a person standing on the edge of the roof, sniping into the crowd below.... (bang, went the little .22) the weakling weedy sniper, gets hit, and is pushed over the edge by the impact of the round...could also be used to knock tin cans off a wall too :)
Project Admin -
http://shadowrunonline.sourceforge.net

------------------------------------
There are 10 kinds of people, those that understand binary and those that don't.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

I like the idea with the weighting system. The only problem is, that the collision system currently only works with static objects, which means that you can move around in a static world, but you are not influenced by things which are moving in your direction. But I hope I'll change this soon.
WhytWulf
Posts: 51
Joined: Mon Sep 08, 2003 11:14 am
Location: Australia, Tamworth, NSW
Contact:

Post by WhytWulf »

woohoo.. looking forward to it :)
Project Admin -
http://shadowrunonline.sourceforge.net

------------------------------------
There are 10 kinds of people, those that understand binary and those that don't.
Post Reply