Help with your scripting

Schematic issue

Schematic issue

Postby SpiderMack » 26 Sep 2017, 22:15

Hi,

I tried this shematic, but it does nothing and i expect the model to be throw away by physic forces at start ?

Image
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Schematic issue

Postby SolarPortal » 28 Sep 2017, 10:23

You need a module to get the physics body ID.

If you look at the "Get Base Details" module, that outputs the objID which is the entities ID in the scene. Then you are plugging that into the Apply force for BodyID, BodyID refers to the physics id that the entity is using.

So try connecting a module of type Get body ID or use a graph like:

Clipboard Image.jpg
Clipboard Image.jpg (33.57 KiB) Viewed 2249 times


Note, applying a force of 30 once to an entity on initialisation wont do much at all, since it is only a single tick.
Try applying it as a frame update to ensure it works.
Also the force, is a single float variable :)

Hope this helps :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 Lua Scripting

Who is online

Users browsing this forum: No registered users and 7 guests

cron