# How do I 3d sight

0 favourites
• 1 posts
From the Asset Store
3D Car Pack 1
\$2.99 USD
3D models + Rendered Low-Poly Cars in isometric, top-down, and side angles.
• so i have a sprite, left /right rotates him.

If an object is within 270-90 degrees i want to spawn a wall image.

this wall image needs to move left from center if the player rotates left and vice versa

i was trying to set the angle to a variable, then

if it is between 0-90 = 225+(225/sin(angle)

if it is between 270-360 = 225-(225/sin(angle)

(i use sin as at 90deg sin =0, and 0deg=1 so it will get closer to mid 225)

it sort of works but not in the right places, this makes me think i have bad maths, but it adds up(i also use abs for the - angle)

I was experimenting with los and opacity to help define if a sprite should be created.

the objective is to have a rotating head that views scenery based from a 2d instance.

any ideas will surely help anyone trying to make 3d

I will adjust size and height of object compared to distance later. i can upload a capx but its just a moving line in the wrong place atm

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• 1 posts
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)