Jump to content

Community wiki


Rastar
 Share

Recommended Posts

Here is a code to rotate towards an entity that you can port to Lua too:

 

Vec3 cur = myEntity->GetRotation(true);
myEntity->Point(targetEntity);
myEntity->Turn(0, 180, 0);
myEntity->SetRotation(Vec3(cur.x, myEntity->GetRotation(true).y, cur.z));

 

btw I tried the code posted above that uses ATan2 in C++ but it seems my header hasn't the operator "-" for Vec2, it's only defined in Vec3.

  • Upvote 1

?? FRANCESCO CROCETTI ??

http://skaredcreations.com

Link to comment
Share on other sites

Some of the code snippets I would like to see are how to open and close doors of a building or how to make an elevator go up or down and stop in exactly the right place. That kinda thing.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

Multiple pages. The main page has it at the bottom but easier to see on a page like this:

http://leadwerks.wikidot.com/wiki:startin-c

 

Screenshot:

http://i40.tinypic.com/30ku539.jpg

 

That would be an add?

 

you can add

 

.wd-adunit { display:none; }

 

to your user style sheet if you dont want to see it - or use add block

System:

Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k

Link to comment
Share on other sites

I couldn't figure out how to actually make one of these. Am I missing an add button or something? The thing is this is more than just Steam :-/. I think (hope) most of those people eventually come here instead of the Steam forums once they get into Leadwerks more.

 

Nevermind I see it in the Steam app now.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...