Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 01:16:04 am
Xith3D CommunityGeneral CategoryFeature Requests & Brilliant Ideas (Moderators: Marvin Fröhlich, 'n ddrylliog)Terrain Following/Physics/FPIH
Pages: [1]
Print
Author Topic: Terrain Following/Physics/FPIH  (Read 1489 times)
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« on: 23. September 2007, 01:36:10 am »

Can a way be implemented to have an FPIH avatar (or any other physics object, for that matter) collide with Mathias's terrain?  I tried to cycle through the terrain myself, but no practical solution came.

Code:
Collideable collider = collEngine.newTriMeshGroup(terrain);           
collGroup.addCollideable( collider );

This does not work.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
Mathias 'cylab' Henze
Fierce Warrior
****
Offline Offline

Posts: 540

1064620
View Profile WWW
« Reply #1 on: 23. September 2007, 09:49:20 am »

Unfortunately I have no experience with physics and XPAL til now, but if someone (Amos?Wink) will guide my, I will happily help with this task, since it is part of the terrain 1.0 "roadmap" anyway.
Logged

BrazilianBoy
Becoming dependent
**
Offline Offline

Posts: 208


l_p_camargo@hotmail.com
View Profile Email
« Reply #2 on: 23. September 2007, 01:05:31 pm »

Why don't you post your whole code?


Lucas.
Logged

Getting my hands dirty Smiley
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #3 on: 24. September 2007, 08:08:38 pm »

Unfortunately I have no experience with physics and XPAL til now, but if someone (Amos?Wink) will guide my, I will happily help with this task, since it is part of the terrain 1.0 "roadmap" anyway.
Well, very simple. (No, really).

You should just figure out an efficient way of testing collisions with your terrain.. for now a good beginning would be to have a way to get a list (well, an index list) of triangles likely to collide with a collideable object, given the AABB (Axis-Aligned Bounding Box) of this object.

Can you do that ?
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic