Search found 10 matches

by Orentz
Sat Jun 06, 2009 1:52 pm
Forum: Questions and Help
Topic: NPC character entity
Replies: 4
Views: 4210

Re: NPC character entity

Wouldn't using a character controller for 30+ entities be slow?
by Orentz
Sat Jun 06, 2009 11:57 am
Forum: Questions and Help
Topic: NPC character entity
Replies: 4
Views: 4210

NPC character entity

Hi norbo! what would you say be the best way to represent an npc (walking man for example) as a physical entity? I want it to collide with objects/terrain but I don't want him to slip down the hills to much. and I want to have a good control over him using A.I. I thought about using a box with high ...
by Orentz
Thu Apr 23, 2009 8:14 am
Forum: Questions and Help
Topic: Terrain collision returns infinity...
Replies: 3
Views: 4141

Re: Terrain collision returns infinity...

Thank you for the quick reply. Yes I'm using version 0.9.0. I'm using 513x513 pixels map with no scaling (1 unit spacing), It also occures when I'm only moving INSIDE a triangle, The angle in which the ray hit the surface also doesn't have any affect (in both extremes it returns infinity in the same...
by Orentz
Wed Apr 22, 2009 9:01 pm
Forum: Questions and Help
Topic: Terrain collision returns infinity...
Replies: 3
Views: 4141

Terrain collision returns infinity...

Hi! I'm using your physics engine and it's great :) I posted a movie on youTube of my game and of course credited you (Search for "Oren Yona" on YouTube - it's the first 2 movies, they're the same) I need some help with terrain collision. My terrain is 513x513 size. I'm creating a level ed...
by Orentz
Tue Apr 07, 2009 2:46 pm
Forum: Questions and Help
Topic: Camera-Object Sliding collision
Replies: 8
Views: 6439

Re: Camera-Object Sliding collision

Never mind I fixed it :)

I just set the Z value of the starting position of the map to the length of the map and created a new float[ , ] with
reversed Z values (HeightMap Length - original Z)
by Orentz
Tue Apr 07, 2009 9:54 am
Forum: Questions and Help
Topic: Camera-Object Sliding collision
Replies: 8
Views: 6439

Re: Camera-Object Sliding collision

You're right, there's an offset... The reason is that my vertices start from point 0,0 and advance in the positive X axis and NEGATIVE Z Axis while your engine apparently considers the Y coords of the heightmap as POSITIVE Z . Any way to inverse that? I tried multiplying the scale.Z by -1 , but that...
by Orentz
Mon Apr 06, 2009 10:58 pm
Forum: Questions and Help
Topic: Camera-Object Sliding collision
Replies: 8
Views: 6439

Re: Camera-Object Sliding collision

Hi, First of all thanks for all your help! I got it working now and I must say it's amazing :) After struggling for days to implement some basic sliding collision, your engine enabled me to do it with a few lines... Some help is still needed though: I couldn't make the terrain collision work... I di...
by Orentz
Mon Apr 06, 2009 1:08 pm
Forum: Questions and Help
Topic: Camera-Object Sliding collision
Replies: 8
Views: 6439

Re: Camera-Object Sliding collision

After playing around with the link you've posted, I tried to do the following: Create a space, add my 3D objects as triangle Meshes to that space. I also used your characterControllerInput + CharacterController classes, and updated their input in my update method. When I tried to do "space.upda...
by Orentz
Mon Apr 06, 2009 9:54 am
Forum: Questions and Help
Topic: Camera-Object Sliding collision
Replies: 8
Views: 6439

Re: Camera-Object Sliding collision

So from what I got so far, and correct me if I'm wrong: I need to define a new space for my entire scene, to that space I add entities (box, sphere, models etc). For my camera I use a sphere for example, but for my 3D models I need to create a triangleMesh entity like this: StaticTriangleGroup.Stati...
by Orentz
Sun Apr 05, 2009 7:06 pm
Forum: Questions and Help
Topic: Camera-Object Sliding collision
Replies: 8
Views: 6439

Camera-Object Sliding collision

Hi, I'm new here and I have to say that this engine looks amazing! For days now I've been trying to make a simple sliding collision between the camera and 3D objects with no luck. I'm sure this engine could help me do it easily. but I don't know how... I've read the documentations and still didn't f...