For any feature requests to either the Skyline Engine or the websites and forums please leave your suggestion here.

navmesh Agent lookAt()

navmesh Agent lookAt()

Postby ant0N » 26 Jan 2016, 14:12

Hi! :D
I just need to turn navmesh agent in a certain direction. How to do it?
similar to:
Code: Select all
entity.yaw(obj, (entity.getHeading(obj, target)), 0)
Sorry for my English. :)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: navmesh Agent lookAt()

Postby SolarPortal » 26 Jan 2016, 15:11

not sure as we don't have the lua commands for this.

Can you give an example of how and why to use this.
Why not control the physics or the entity.

Use navmesh.setAgentControlled(obj, 0 ) to disable the agent and then use your own math to rotate the entity or physics.

I dont see why we couldn't program this, but the agent is designed to follow a path only.

Nice to hear from you again antON :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: navmesh Agent lookAt()

Postby ant0N » 26 Jan 2016, 17:52

thank you, SP! This solved my problem. :D
Sorry for my English. :)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: navmesh Agent lookAt()

Postby SolarPortal » 26 Jan 2016, 18:04

cool :) Glad to help :D
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 5 guests