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, 04:33 AM,
#1
The Crowbar Overlord Offline
TSCM Member
***
Posts: 3
Threads: 1
Joined: Sep 2013
Holo orbit problem
I have a small problem I encountered while creating holograms on an E2 Chip.

The object (Cube) is orbiting around the center of another object (Sphere).
It works completely fine on the X and Y axis, but if I try to do anything on the Z axis, it always spirals out of sight and resets in it's starting position.

The code is the following:

interval(10)

Timer = Timer + 1 * 0.1
T = Timer
Count += 0.01

X1 = 0
Y1 = 0
Z1 = 0

##Orbiting Objects

X2 = 100 * cosr(Count)
Y2 = 100 * sinr(Count)
Z2 = 0

holoPos(43,holoEntity(1):pos() +vec(0,0,0) +vec(X2,Y2,Z2))

__
Is it possible to create a wobbly or tilted orbit around the Sphere?
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.