ConeView and direction

Discuss issues specific the Java port of Box2D
guiramos
Posts: 2
Joined: Mon Jun 13, 2016 11:46 am

ConeView and direction

Postby guiramos » Mon Jun 13, 2016 11:52 am

Hi gurus.

Do you know the ApplyForce example? There is a kind triangular character you can control with "wasd" right?

I want to implement a cone view to check what the character is viewing?
I guess the best way to do that is to cast several rays in the direction the character is facing, correct?

How can I calculate those rays direction?

And how can I render those rays(lines), just to visually check if they are accurated.

PLEASE, PLEASE, PLEASE help me.

guiramos
Posts: 2
Joined: Mon Jun 13, 2016 11:46 am

Re: ConeView and direction

Postby guiramos » Tue Jun 14, 2016 7:26 am

Please help!


Return to “Java”



Who is online

Users browsing this forum: No registered users and 1 guest