Search found 3 matches

by gibberwocky
Sat Dec 06, 2014 7:33 pm
Forum: General
Topic: Gravity (quick noob question)
Replies: 5
Views: 5209

Re: Gravity (quick noob question)

I've adapted that for building placement: local building_width = (( math.pi*2*objects.ground.shape:getRadius() ) / num_buildings)-- circumference/num_buildings for i=1, num_buildings do local i2 = i/num_buildings -- i in range 0 to 1 local a = i2*math.pi*2 -- angle in radians local building_height =...
by gibberwocky
Sat Dec 06, 2014 6:16 pm
Forum: General
Topic: Gravity (quick noob question)
Replies: 5
Views: 5209

Re: Gravity (quick noob question)

Thanks, that makes sense. Before looking at the dynamic option, I'd still like to resolve the physics method. I've taken one of the tutorial scripts as a start and edited it to attempt to apply force to some blocks, however they all fly away. Can you spot where I'm going wrong, or what I've missed? ...
by gibberwocky
Sat Dec 06, 2014 3:19 pm
Forum: General
Topic: Gravity (quick noob question)
Replies: 5
Views: 5209

Gravity (quick noob question)

I'm entirely new to lua and using a physics API, but have prior experience with a variety of languages. I thought I'd give writing a simple game a bash to get back into the swing of things after a long break. I would like to fix the centre of gravity to the centre of a circle. After which, the plan ...