Question about ray

Hi!!!



I make this code to create a collision of my character with the ground, and I want create a collision with the walls too…



ray = new Ray(new Vector3f(player.getLocalTranslation().x, player.getLocalTranslation().y + 3.0f, player.getLocalTranslation().z),

This isn't a reply to provide help (sorry!)  Just wanted to say your app is looking nice. :)  Almost starting to remind me of earlier Resident Evils

Thx renanse!!!

dont you just want bounding collision results, if there is a collision, you just need to know wether that collision is allowable or not

Hi prism!!!



In my case, my character is inside the scenario and the bound collision dont work like I want.

I want set the direction of Ray ever in front of my character like the image below…Or please, if have another way to create a collision like I want(floor and walls)…tell me! :smiley:







Thx a lot for your help!!!

Hi guys!!!



I solve my problem…



My evil code… :stuck_out_tongue:



public void walking(String action){
onFloorResult.clear();
if(action.equals("forward")){
ray = new Ray(new Vector3f(player.getLocalTranslation().x, player.getLocalTranslation().y + 1.5f, player.getLocalTranslation().z),

Gratz! :slight_smile: