Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
« Previous 1 … 4 5 6 7 8 Next »
Holo orbit problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Holo orbit problem
13-06-2014, 11:53 AM,
#3
Cobra Offline
Moderator
*****
Posts: 306
Threads: 18
Joined: Oct 2013
RE: Holo orbit problem
I did the math on my own for this:

Code:
interval(10) AnglePerTick = 1 CurTick = CurTick + 1 Radius = 100 relXPos = cos(CurTick * AnglePerTick) * Radius relZPos = sin(CurTick * AnglePerTick) * Radius holoPos(43, vec(relXPos, 0, relZPos))

You will have to make CurTick persistant in order that it works correctly. This is just some pseudo code I wrote without testing it, so maybe you will need to make some adjustements. (Did not code E2 in a long time, mostly into SF atm)

  • ASUS R.O.G. Rampage IV Black Edition
  • 2x Fury X
  • Intel Core i7 4930K OC @ 4.4GHz
  • Corsair H100i
  • Samsung SSD 850 Series 1TB
  • Samsung SSD 830 Series 512GB
  • Western Digital 512GB HDD
  • 32GB DDR3 2400MHz RAM (G.Skill TridentX)
  • Corsair 900D
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Holo orbit problem - by The Crowbar Overlord - 13-06-2014, 04:33 AM
RE: Holo orbit problem - by pho - 13-06-2014, 11:27 AM
RE: Holo orbit problem - by Cobra - 13-06-2014, 11:53 AM
RE: Holo orbit problem - by The Crowbar Overlord - 13-06-2014, 12:48 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.